package com.example.springbootaop.service;

import com.example.springbootaop.annotation.ServiceLog;
import org.springframework.stereotype.Service;

@Service
@ServiceLog
public class DemoService {
    public Integer divide(Integer a, Integer b) {
        System.out.printf("divide方法内打印: a=%d  b=%d 返回:%d %n", a, b, a / b);
        return a / b;
    }

    public Integer add(Integer a, Integer b) {
        System.out.printf("add方法内打印: a=%d  b=%d 返回:%d %n", a, b, a + b);
        return a + b;
    }
}
